package com.gitee.swsk33.catcomment.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gitee.swsk33.catentity.dataobject.Comment;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CommentDAO extends BaseMapper<Comment> {

	@Insert("insert into `comment` (`content`, `cat_id`) values (#{content}, #{cat.id})")
	int insert(Comment comment);

}